import React from 'react';
import { Button } from 'antd';
import { connect } from 'dva';


const HomePage = ({ dispatch }) => {
  const handle = (e) => {
    e.preventDefault();
    dispatch({
      type: 'example/query',
    });
  };
  return (
    <div>
      <h1>Welcome to SDNHub</h1>
      <Button onClick={handle} >aaa</Button>
    </div>
  );
};
export default connect()(HomePage);
